﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>oncopy事件应用示例</title>
</head>
<body>
    <p oncopy="myFunction()">oncopy复制事件的应用</p>
    <script>
        function myFunction() {
            alert("你复制了文本！");
        }
    </script>
</body>
</html>